package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.GoodsCount;
import com.atguigu.jxc.entity.ReturnListGoods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface ReturnListGoodsDao {
    //添加退货商品
    void save(ReturnListGoods listGood);
    //删除退货商品
    void deleteByListId(Integer returnListId);
    //通过退货单查询退货商品
    List<ReturnListGoods> getByListId(Integer returnListId);
    //退货统计
    List<GoodsCount> selectCount(Date start, Date end, Integer goodsTypeId, String codeOrName);
}
